/*
 * @Author: jiu yin
 * @Date: 2025-03-05 14:41:02
 * @LastEditTime: 2025-08-19 11:36:15
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \one-half-vue3-2025-3-7\src\router\index.ts
 */
import { createRouter, createWebHistory } from "vue-router";
import routerArr from "./routerArr";

const router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes: [
      {
         path: "/login",
         name: "login",
         mete: {
            title: "登录",
         },
         component: () => import("@/views/login/index.vue"),
      },
      {
         path: "/test",
         name: "test",
         component: () => import("@/views/test/index.vue"),
      },
      ...routerArr,
   ],
});

export default router;
